package org.anderground.editor.edits;

import org.anderground.core.model.Line;
import org.anderground.core.model.Tunnel;

public class SetTunnelLineAction extends AbstractAction<Tunnel, Line> {

	public SetTunnelLineAction(Tunnel object, Line value) {
		super(object, value);
	}

	@Override
	protected Line getCurrentValue() {
		return getTarget().getLine();
	}

	@Override
	protected void setCurrentValue(Line value) {
		Editor.edit(getTarget()).setLine(value);

	}

}
